#include "comm_interface.h"
#include "proc_file.h"
#include "../plog.h"
int register_interface( PCI_TYPE type, struct PCI_CONFIG* pConfig ){
	int ret = 0;
	bool completed = false;
	if( type & PCI_PROC ){
		int iret = procfile_initialize( pConfig );
		if( iret == 0 ){
			completed = true;
		}else{
			LOGI("register proc file failed");
		}
	}

	if( type & PCI_UDP ){
		completed = true;
		ret = -2; /* not implemented */
	}

	if( !completed ){
		PLOG("there isn't any communication interface");
		ret = -1;
	}
	return ret;
}
